package cn.iocoder.yudao.module.trade.api.store;

import cn.iocoder.yudao.module.trade.api.store.dto.DeliveryPickUpStoreDTO;
import cn.iocoder.yudao.module.trade.convert.delivery.DeliveryPickUpStoreConvert;
import cn.iocoder.yudao.module.trade.service.delivery.DeliveryPickUpStoreService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;

/**
 * 订单 API 接口实现类
 *
 * @author HUIHUI
 */
@Service
@Validated
public class TradeStoreApiImpl implements TradeStoreApi {

    @Resource
    private DeliveryPickUpStoreService deliveryPickUpStoreService;

    @Override
    public List<DeliveryPickUpStoreDTO> getStoreList(Collection<Long> ids) {
        return DeliveryPickUpStoreConvert.INSTANCE.convertListDTO(deliveryPickUpStoreService.getDeliveryPickUpStoreList(ids));
    }
}
